package com.lyz.dataStructure.dome;/**
 * @Author:759057893@qq.com Lyz
 * @Date: ${Date} 16:13
 * @Description:
 **/

/**
 *@Author:759057893@qq.com Lyz
 *@Date: 2019/7/13 16:13
 *@Description:
 **/
public class primeNumber {

    public static void main(String[] args) {
        prime(2,99);
    }

    public static  void prime(int start,int end){
        if(start>end){
            return;
        }
        for(int i=start;i<end;i++){
            boolean isPrimeNumber = true;
            for(int j=2;j<i;j++){
                if(i%j==0){
                    isPrimeNumber =false;
                    break;
                }
            }
            if(isPrimeNumber){
                System.out.print(i);
                System.out.print(",");
            }
        }
    }
}
